home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / battle_fields.swf / scripts / DefineButton2_216 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2006-06-13  |  1.4 KB  |  57 lines

  1. on(release){
  2.    var ┬º\x01┬º = 821;
  3.    if(eval("\x01") == 821)
  4.    {
  5.       set("\x01",eval("\x01") - 202);
  6.       ┬º┬ºpush(true);
  7.       ┬º┬ºpush(false);
  8.       ┬º┬ºpush(false);
  9.       ┬º┬ºpush(true);
  10.       while(true)
  11.       {
  12.          if(┬º┬ºpop())
  13.          {
  14.          }
  15.          if(┬º┬ºpop())
  16.          {
  17.          }
  18.          if(┬º┬ºpop())
  19.          {
  20.             break;
  21.          }
  22.          ┬º┬ºpush(true);
  23.          ┬º┬ºpush(false);
  24.       }
  25.       if(eval("\x01")["\x02"] > eval("\x03"))
  26.       {
  27.          eval("\x01")["\x02"] -= eval("\x03");
  28.          if(getProperty("\x04", _name) != ┬º┬ºconstant(4))
  29.          {
  30.             eval("\x01")[getProperty("\x04", _name)]++;
  31.             set(┬º┬ºconstant(5),eval(┬º┬ºconstant(5)) + 1);
  32.             gotoAndStop(3);
  33.          }
  34.          else
  35.          {
  36.             eval("\x01")[┬º┬ºconstant(6)] += 5;
  37.             set(┬º┬ºconstant(5),eval(┬º┬ºconstant(5)) + 5);
  38.             eval("\x01")[┬º┬ºconstant(4)] += eval("\x01")[┬º┬ºconstant(6)];
  39.             if(eval("\x01")[┬º┬ºconstant(6)] >= 100)
  40.             {
  41.                eval("\x01")[┬º┬ºconstant(6)] = 100;
  42.                eval("\x01")[┬º┬ºconstant(4)] = 100;
  43.                gotoAndStop(3);
  44.             }
  45.          }
  46.       }
  47.       else
  48.       {
  49.          ┬º┬ºconstant(8)(┬º┬ºconstant(7));
  50.       }
  51.    }
  52.    else if(eval("\x01") == 619)
  53.    {
  54.       set("\x01",eval("\x01") + 81);
  55.    }
  56. }
  57.